package com.flycun;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name= "user-service",fallback=UserServiceRemoteHystrix.class)
public interface UserServiceRemote {
    @RequestMapping(value = "/user/{id}")
    public String getUser(@PathVariable(value = "id") int id);
    
    @RequestMapping(value = "/user/credit/{id}")
    public String getCredit(@PathVariable(value = "id") int id);
}
